package com.example.warehouse_manager.mapper;


import com.example.warehouse_manager.entity.Auth;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AuthMapper {

	//根据用户id查询用户所有权限(菜单)的方法
	public List<Auth> findAuthByUid(Integer userId);

	//查询所有权限菜单
	public List<Auth> findAllAuth();

	//根据角色id查询分配的所有权限
	public List<Auth> findAuthByRid(Integer roleId);

}
